package com.hsc.www.amqp.config;

import com.hsc.www.amqp.annotation.TransMessage;
import org.springframework.stereotype.Component;

@Component
public class TestService {

    @TransMessage(exchange = "123456", routingkey = "11", bizName = "testBus", payloadIndex = -1)
    public User sendUser(String name) {
        User user = new User();
        user.setId(System.currentTimeMillis());
        user.setName(name);
        return user;
    }


}
